package cn.zxy.mapper;

import cn.zxy.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DUserMapper {

    //查询所有
    public List<User> findAll(User user);

    List<User> findByAll();

    public int update(Map<String,Object> map);
    public int insertMap(Map<String,Object> map);

    public List<User> showFindAll(
            @Param("username") String username,
            @Param("sex") String sex,
            @Param("address") String address,
            @Param("birthday") String birthday
    );

    public void deleteAll(
            @Param("username") String username,
            @Param("sex") String sex,
            @Param("address") String address,
            @Param("birthday") String birthday
    );

    public List<User> findByIds(List<Integer> ids);

    void insert(List<User> list);

    void DeleteAll(List<Integer> ids);
}
